// 中转导出，在此做axios的封装函数
import {request} from './request'
import { getToken, setToken, removeToken } from './token'
// getAction请求封装
export const getAction = (url, params) => {
  return request({
    url: url,
    method: 'GET',
    params: params
  })
}

// postAction封装
export const postAction = (url, data) => {
  return request({
    url: url,
    method: 'POST',
    data: data
  })
}

export {request, getToken, setToken, removeToken} 